﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Report_IntergralWasteBook" Codebehind="IntergralWasteBook.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
        <script type="text/javascript" src="../Include/Js/PopupCalendar.js"></script>
        <script type="text/javascript" src="../Include/Js/OpenWindow.js"></script>
        <script type="text/javascript">
        
       function setVIPValue(p)
       {
       
           var tem=p.split(",");
           var temText ="";
         
           for(var i=0;i<tem.length;i++)
           {
                var gk=tem[i].split("|");
                if(gk[0]!="")
                {
                         temText = temText  +   gk[0]+ ",";
                }
           }
      
                document.getElementById("txtUserCode").innerText  = temText.substr(0,temText.length-1);
          
       } 
          
         function MultiSearchVIP(path)
        {
	        var handle = window.showModalDialog(path+'DialogBoxHostFrame.aspx?url=MultiSelectSearchVIP.aspx', window,'status:off;center=yes;edge:raised;dialogHeight:500px;dialogWidth:720px;help:0;resizable:0;scrollbar=0');	 
	        if (handle != null && handle != '' && typeof handle != 'undefined') {
	            //__doPostBack("SearchProduct",handle);
	            if(handle=="0")
	            {
	            window.parent.frmright.location="../CustomerArchives/AddVIP.aspx?isorder=1";
	            }
	            else
	            {
	            setVIPValue(handle);
	            }
	        }
        }  
        
        
		
        </script>
<style type="text/css">
.menu_bg3 { background-color:#f5f5f5; font-weight:bold; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cccccc 1px solid;border-top:#cccccc 1px solid;clear:left;}
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div align="justify">
    <h2>积分流水帐统计</h2><asp:DataGrid ID="DataGrid" runat="server" OnItemDataBound="DataGrid_ItemDataBound"  > </asp:DataGrid>

    <div class="menu_bg">
        会员帐号：<asp:TextBox ID="txtUserCode" runat="server" Width="100px"></asp:TextBox>&nbsp;
        积分类型：<asp:DropDownList ID="drpType" runat="server" DataTextField="IT_NAME" DataValueField="IT_CODE"></asp:DropDownList>
        日期：<asp:TextBox ID="txtStart" runat="server" onclick="getDateString(this,oCalendarChs)"
            Width="100px"></asp:TextBox>至<asp:TextBox ID="txtEnd" runat="server" onclick="getDateString(this,oCalendarChs)"
                Width="100px"></asp:TextBox>&nbsp;<asp:Button ID="btnSearch" runat="server" CssClass="input_button" Text="查询" OnClick="btnSearch_Click" />&nbsp;<asp:Button ID="Button1" runat="server" CssClass="input_button" Text="导出" OnClick="btnExprot_Click" />
                
    </div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div class="juli"><asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="grdIntergral" runat="server" AutoGenerateColumns="False" ShowFooter="True" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" Height="1px" Width="100%">
                    <PagerSettings FirstPageText="首页" LastPageText="末页" Mode="NumericFirstLast" NextPageText="下一页"
                        PreviousPageText="上一页" NextPageImageUrl="~/images/next_page_dark.gif" PreviousPageImageUrl="~/images/prev_page_dark.gif" />
                    <Columns>
                        <asp:BoundField DataField="UserCode" HeaderText="会员帐号" SortExpression="UserCode" >
                            <FooterStyle BorderStyle="Solid" />
                            <HeaderStyle BackColor="#E7E7E7" BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                            <ItemStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:BoundField DataField="GKMC" HeaderText="会员名称" SortExpression="GKMC" >
                            <FooterStyle BorderStyle="Solid" />
                            <HeaderStyle BackColor="#E7E7E7" BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                            <ItemStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:BoundField DataField="IntergalDateTime" HeaderText="积分时间" SortExpression="IntergalDateTime" >
                            <FooterStyle BorderStyle="Solid" />
                            <HeaderStyle BackColor="#E7E7E7" BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                            <ItemStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:BoundField DataField="IntegralTypeName" HeaderText="积分类型" SortExpression="IntergalType" >
                            <FooterStyle BorderStyle="Solid" />
                            <HeaderStyle BackColor="#E7E7E7" BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                            <ItemStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:BoundField DataField="JF" HeaderText="积分" SortExpression="JF" >
                            <FooterStyle BorderStyle="Solid" />
                            <HeaderStyle BackColor="#E7E7E7" BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                            <ItemStyle BorderStyle="Solid" />
                        </asp:BoundField>
                    </Columns>
                    <PagerStyle HorizontalAlign="Left" />
                </asp:GridView>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel></div>
    </div>
    </form>
</body>
</html>
